package org.teemor.demo.netty.server.discard.handler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelOutboundHandlerAdapter;
import io.netty.channel.ChannelPromise;

/**
 * @ename zhoulk
 * @cname 周李科
 * @date 2020/6/9 9:33
 */
public class DiscardServerOutboundHandler extends ChannelOutboundHandlerAdapter {

    @Override
    public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
        System.out.println("调用 write,msg:"+ msg.toString());
        super.write(ctx, msg, promise);
    }
}
